/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rafkind.crawl.battle;

/**
 *
 * @author dave
 */
public enum BattleResult {
  CONTINUE(0),
  VICTORY_OR_DEFEAT(2),
  RUN_AWAY(1);
  
  private int priority;
  
  BattleResult(int p) {
    priority = p;
  }
  
  public BattleResult merge(BattleResult o) {
    if (o.priority > this.priority)
      return o;
    else
      return this;
  }
}